package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Loginlog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface LoginlogDao extends JpaRepository<Loginlog,String>{

    @Query("select l from Loginlog l order by l.logintime desc")
    List<Loginlog> getLoginlogsByLogintime ();

}
